package com.hnxxxy.workshop.service;


import com.hnxxxy.workshop.request.WorkshopPageRequest;
import com.hnxxxy.workshop.request.WorkshopRequest;
import com.hnxxxy.workshop.vo.WorkshopVO;

import java.util.Map;

/**
 * <p>
 * 车间 服务类
 * </p>
 *
 * @author zqh
 * @since 2022-05-09
 */
public interface WorkshopService {

    /**
     * 新增车间
     * @param workshopRequest
     */
    void add(WorkshopRequest workshopRequest);

    /**
     * 根据id删除车间
     * @param id
     */
    void deleteById(int id);

    /**
     * 修改车间信息
     * @param workshopRequest
     */
    void update(WorkshopRequest workshopRequest);

    /**
     * 根据id查询车间信息
     * @param id
     * @return
     */
    WorkshopVO findByIdWorkshop(int id);


    Map<String, Object> page(WorkshopPageRequest workshopPageRequest);
}
